-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OptIn assets and triggers #1184
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1184 +/- ##
==========================================
- Coverage 87.73% 87.64% -0.10%
==========================================
Files 256 260 +4
Lines 10922 10988 +66
==========================================
+ Hits 9582 9630 +48
- Misses 920 935 +15
- Partials 420 423 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
ab7ab25
to
33437cd
Compare
assets/optin.go
Outdated
// "name": "Joke Of The Day", | ||
// "channel": { | ||
// "uuid": "204e5af9-42c3-4d46-8aab-ce204dff25b4", | ||
// "name": "Facebook" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
making optins channel specific.. because we're going to associate auth keys with optins and they are obviously channel specific
33437cd
to
233276a
Compare
@@ -19,7 +19,7 @@ type Channel struct { | |||
} | |||
|
|||
// NewChannel creates a new channel | |||
func NewChannel(uuid assets.ChannelUUID, name string, address string, schemes []string, roles []assets.ChannelRole, parent *assets.ChannelReference) assets.Channel { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated cleanup
5b39aa4
to
a0eee0b
Compare
a0eee0b
to
eeff921
Compare
So that in a flow triggered by an optin or optout, you can do
@trigger.optin
,@trigger.optin.name
etcAnd whatever action we add to solicit an optin needs to know about optins.